package com.kong.service;

import com.kong.pojo.Member;

import java.util.Map;

/**
 * @author yang2013
 * @data 2020/10/15 20:29
 */
public interface MemberService {
    Member findByPhone(String telephone);

    void add(Member member1);

    Map getMemberReport();

    /**
     * 通过性别获取饼图信息
     * @return
     */
    Map getMemberReportBySex();

    /**
     * 通过年龄获取饼图信息
     * @return
     */
    Map getMemberReportByAge() throws Exception;

    /**
     * 通过指定日期段获取会员数量
     * @return
     */
    Map getMemberReportByDate(String startDate,String endDate) throws Exception;
}
